/*-------------------------<-- Start of Description -->-------------------------*\ | PURPOSE: This macro prints a standard SAS note about the contents of a SAS | | dataset into the log. | |--------------------------<-- End of Description -->----------------------------| |--------------------------------------------------------------------------------| |------------------------<-- Start of Files Created -->--------------------------| | SYNTAX: %datanote (_input_dataset_) | \-------------------------<-- End of Files Created-->---------------------------*/ %macro datanote (_datanoted_) /des='Creates a NOTE: for a SAS dataset'; %local _datanoted_ _datanoteo_ _datanotev_; %let _datanoted_ = %trim(%left(%data(&_datanoted_))); %let _datanoteo_ = %trim(%left(%nobs(&_datanoted_))); %let _datanotev_ = %trim(%left(%nvars(&_datanoted_))); %put NOTE: Dataset &_datanoted_ contains &_datanoteo_ observations and &_datanotev_ variables.; %mend datanote;